﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="BestBuy.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MenuNgang" runat="server">
    <div class="main-nav-container">
        <ul class="main-nav">
            <li><a href="/">
                <asp:Literal ID="lbHome" runat="server" Text="Home"></asp:Literal>
            </a></li>
            <li><a id="A1" href="../PageGuest/ListCategory.aspx" runat="server">
                <asp:Literal ID="lbProducts" runat="server" Text="Products"></asp:Literal></a></li>
            <li><a id="A2" href="../PageGuest/bListCategory.aspx" runat="server">
                <asp:Literal ID="lbBuyOffer" runat="server" Text="Buy Offers"></asp:Literal></a></li>
            <li><a id="A3" href="../PageGuest/sListCategory.aspx" runat="server">
                <asp:Literal ID="lbSellOffer" runat="server" Text="Sell Offers"></asp:Literal></a></li>
            <li><a id="A4" href="../PageGuest/cListCategory.aspx" runat="server">
                <asp:Literal ID="lbCompanies" runat="server" Text="Companies"></asp:Literal></a></li>
            <li><a id="A5" href="#" runat="server">
                <asp:Literal ID="lbHelp" runat="server" Text="Help"></asp:Literal></a></li>
            <li><a id="A6" runat="server" href="../PageGuest/PageContact.aspx">
                <asp:Literal ID="lbContact" runat="server" Text="Contact us"></asp:Literal></a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="wrapper-content">
        <h2>
            Login
        </h2>
        <p>
            Enter your username and password.
            <asp:HyperLink ID="RegisterHyperLink" NavigateUrl="~/PageGuest/PageRegister.aspx" runat="server" EnableViewState="false">Register now</asp:HyperLink>
            If you do not already have an account.
        </p>
        <asp:Panel ID="pnThongBao" runat="server">
            <asp:Label ID="lbError" runat="server" Text="Email or password is incorrect."></asp:Label>
        </asp:Panel>
        <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
            <LayoutTemplate>
                <div class="form-horizontal">
                    <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="InLeft error message"
                        ValidationGroup="LoginUserValidationGroup" />
                    <fieldset class="login">
                        <div class="control-group">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="control-label">Email:</asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    CssClass="failureNotification" ErrorMessage="Email." ToolTip="username." ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="Your email address uncorrect." ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div class="control-group">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="control-label">Password:</asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    CssClass="failureNotification" ErrorMessage="Password." ToolTip="Password." ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <%--<asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="checkbox">Ghi nhớ tài khoản</asp:Label>--%>
                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="LoginUserValidationGroup"
                                    CssClass="style_button" OnClick="LoginButton_Click" />
                            </div>
                        </div>
                    </fieldset>
                </div>
            </LayoutTemplate>
        </asp:Login>
    </div>
</asp:Content>
